<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function clickMe() {
				// alert('clickMe');
				// document内置对象
				// var inputObj = document.getElementById('inputId');
				
				//var inputObjs = document.getElementsByTagName('input');
				//var inputObj = inputObjs[0];
				var inputObj = document.getElementsByTagName('input')[0];
				
				console.log(inputObj)
				console.log(inputObj.value);
			}
		</script>
	</head>
	<body>
		<input type="text" id="inputId" value="Hello JS"/> <br/>
		<!-- <button>点我</button> -->
		<input onclick="clickMe()" type="button"  value="点我1"/>
	</body>
</html>
